package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.deepfishing.DeepFishingUserData;
import com.yanqu.road.entity.activity.deepfishing.DeepFishingUserFishData;
import com.yanqu.road.entity.activity.deepfishing.config.DeepFishingBeachCombConfig;
import com.yanqu.road.entity.activity.deepfishing.config.DeepFishingEquipConfig;
import com.yanqu.road.entity.activity.deepfishing.config.DeepFishingEventConfig;
import com.yanqu.road.entity.activity.deepfishing.config.DeepFishingFishConfig;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class DeepFishingBusiness {

    //--------------config
    public static Map<Integer, DeepFishingFishConfig> getDeepFishingFishConfigList(int activityId){
        return DaoHelper.getDeepFishConfigDaoImpl().getDeepFishingFishConfigList(activityId);
    }

    public static Map<Integer , DeepFishingEquipConfig> getDeepFishingEquipConfigList(int activityId){
        return DaoHelper.getDeepFishConfigDaoImpl().getDeepFishingEquipConfigList(activityId);
    }

    public static Map<Integer, DeepFishingEventConfig> getDeepFishingEventConfigList(int activityId){
        return DaoHelper.getDeepFishConfigDaoImpl().getDeepFishingEventConfigList(activityId);
    }

    public static Map<Integer, List<DeepFishingBeachCombConfig>> getDeepFishingBeachCombConfigList(int activityId){
        return DaoHelper.getDeepFishConfigDaoImpl().getDeepFishingBeachCombConfigList(activityId);
    }

    //------------------------data-----------------
    public static DeepFishingUserData getDeepFishingUserData(int activityId,long userId){
        return DaoHelper.getDeepFishingUserDataDaoImpl().getDeepFishingUserData(activityId,userId);
    }

    public static boolean addDeepFishingUserData(DeepFishingUserData data){
        return DaoHelper.getDeepFishingUserDataDaoImpl().add(data);
    }

    public static boolean updateDeepFishingUserData(DeepFishingUserData data){
        return DaoHelper.getDeepFishingUserDataDaoImpl().update(data);
    }

    //鱼
    public static Map<Integer, DeepFishingUserFishData> getDeepFishingUserFishDataMap(int activityId,long userId){
        return DaoHelper.getDeepFishingFishDataDaoImpl().getDeepFishingUserFishDataMap(activityId, userId);
    }

    public static boolean addDeepFishingUserFishData(DeepFishingUserFishData data){
        return DaoHelper.getDeepFishingFishDataDaoImpl().add(data);
    }

    public static boolean updateDeepFishingUserFishData(DeepFishingUserFishData data){
        return DaoHelper.getDeepFishingFishDataDaoImpl().update(data);
    }




}
